<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./static/jquery-3.4.1.js"></script>
    <script>
        $(function(){
            let user = JSON.parse(sessionStorage.getItem('user'))
            let token = user ? user.token:null
            $.ajax({
                url:'http://127.0.0.1:3000/userList',
                headers:{
                    token
                },
                data:{
                    id:123
                },
                type:'POST',
                success(res){
                    console.log(res)
                },
                error(e){
                    console.log(e)
                }
            })
        })
    </script>
</head>
<body>
    <div id="app">
index
    </div>
</body>
</html>